package com.wangb.dao;
import com.wangb.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


public interface UserMapper {

    //根据id查询用户
    User getUserById(int id);
    @Select("select * from user where id = #{id}")
    User getUserById1(int id);

    //获取分页
    ArrayList<User> getLimitPageUser(Map<String,Integer> map);

    //获取分页
    ArrayList<User> getRowBoundsPageUser();
}
